<?xml version="1.0" encoding="UTF-8"?>

<ui:composition	xmlns="http://www.w3.org/1999/xhtml"
				xmlns:h="http://java.sun.com/jsf/html"
				xmlns:f="http://java.sun.com/jsf/core"
				xmlns:ui="http://java.sun.com/jsf/facelets"
				xmlns:a4j="http://richfaces.org/a4j"
				xmlns:rich="http://richfaces.org/rich"
				template="/template/loginLayout.xhtml">

	<ui:define name="body">
		<h:form id="loginForm">
			<center>
				<rich:panel style="width: 240px;">
					<f:facet name="header">
						<h:outputText value="#{bundle.authentication}" escape="false" />
					</f:facet>
	
					<ui:include src="/template/include/message.xhtml" />
	
					<rich:spacer height="5" />
	
					<h:panelGrid border="0" cellpadding="0" cellspacing="2" columns="2" style="width: 240px; text-align: left;">
						<h:outputText value="#{bundle.user}" escape="false" />
						<h:inputText id="user" value="#{authenticationJsfBean.user}" size="20" maxlength="15" />
		
						<h:outputText value="#{bundle.password}" escape="false" />
						<h:inputSecret id="password" value="#{authenticationJsfBean.password}" size="20" maxlength="15" />
		
						<h:outputText value="#{bundle.language}" escape="false" />
						<h:selectOneMenu id="language" value="#{authenticationJsfBean.language}" style="width: 120px;" valueChangeListener="#{authenticationJsfBean.changeLanguage}" onchange="submit();">
							<f:selectItem itemValue="0" itemLabel="#{bundle.selection}" />
							<f:selectItem itemValue="es" itemLabel="#{bundle.spanish}" />
							<f:selectItem itemValue="en" itemLabel="#{bundle.english}" />
						</h:selectOneMenu>
					</h:panelGrid>
		
					<h:panelGrid border="0" cellpadding="0" cellspacing="0" style="width: 200px; text-align: center;">
						<h:commandButton id="enter" value="#{bundle.enter}" action="#{authenticationJsfBean.authenticate}" />
					</h:panelGrid>
				</rich:panel>
			</center>
		</h:form>
	</ui:define>
</ui:composition>